package com.ruoyi.project.posts.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 二手交易商品分类对象 lbl_cs_deal_classify
 * 
 * @author BaoL
 * @date 2023-03-26
 */
public class LblCsDealClassify extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String classifyName;

    /** 父级类别id，如果无父级，则为0 */
    @Excel(name = "父级类别id，如果无父级，则为0")
    private Long parentId;

    /** 深度，最顶级类别的深度为1，次级为2，以此类推 */
    @Excel(name = "深度，最顶级类别的深度为1，次级为2，以此类推")
    private Integer depth;

    /** 自定义排序序号 */
    @Excel(name = "自定义排序序号")
    private Integer sort;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private Integer enable;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClassifyName(String classifyName) 
    {
        this.classifyName = classifyName;
    }

    public String getClassifyName() 
    {
        return classifyName;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setDepth(Integer depth) 
    {
        this.depth = depth;
    }

    public Integer getDepth() 
    {
        return depth;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }
    public void setEnable(Integer enable) 
    {
        this.enable = enable;
    }

    public Integer getEnable() 
    {
        return enable;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("classifyName", getClassifyName())
            .append("parentId", getParentId())
            .append("depth", getDepth())
            .append("sort", getSort())
            .append("enable", getEnable())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
